package com.example.dao;

import com.example.model.Goods;
import feign.Param;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface GoodsMapper {
    int deleteByPrimaryKey(Long goodsId);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Long goodsId);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);

    int updateNumByGoodsId(@Param("number") Integer number, @Param("goodsId") Long goodsId);
}